#ifndef __BUOLA_SCENE_COBJECT_H__
#define __BUOLA_SCENE_COBJECT_H__

#include <buola/scene.h>

namespace buola { namespace scene {

class CObject : public UShared
{
protected:
    CObject();
public:
    virtual ~CObject();

    void AttachTo(PTransform pTransform);
    virtual void Render(CRenderContext &pContext)=0;
    virtual void CollectPolygons(std::vector<mat::CVec3d> &pPoints,std::vector<mat::CVec3d> &pNormals,std::vector<int> &pFaces) {}

    PTransform mTransform;
};

/*namespace scene*/ } /*namespace buola*/ }

#endif
